package com.test.design.pattern.responsibility;

/**
 *@ClasName Manager
 *@Descripution TODO 部门经理类（具体的处理者）
 *@Author leikw
 *@Date 2021/12/21 10:30
 *@Version V1.0
*/
public class Manager extends Handler {

    public Manager() {
        super(Handler.NUM_ONE,Handler.NUM_THREE);
    }

    protected void handleLeave(LeaveRequest leave) {
        System.out.println(leave.getName() + "请假" + leave.getNum() + "天，" + leave.getContent() + "。");
        System.out.println("部门经理审批：同意");
    }
}
